import { IsString, IsOptional, Length, IsArray } from 'class-validator';

export class CreateTextDto {
  @IsString()
  @Length(1, 255)
  title: string;

  @IsString()
  content: string;

  @IsOptional()
  @IsArray()
  tagIds?: number[];
}